package org.lhh.server.common.utils;

import java.util.List;

public class CollectionUtils {

    public static boolean isEmpty(List<?> list) {
        return list == null || list.size() <= 0;
    }

    public static boolean isEmpty(Object[] value) {
        return value == null || value.length <= 0;
    }


    public static boolean isNotEmpty(List<?> list) {
        return !isEmpty(list);
    }

    public static boolean isNotEmpty(Object[] value) {
        return !isEmpty(value);
    }
}
